<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本节点</title>
</head>
<body>
    <b><i>加粗文本</i></b>
    <div>文本节点测试</div>
</body>
<script>
    var divText=document.getElementById("box");
    console.log(divText);
    // divText.innerHTML="<b><i><u>div中加粗之后的文本</u></i></b>"
    divText.innerText="<b><i><u>div中加粗之后的文本</u></i></b>"

</script>
</html>